/**
 * Created by chenhong on 2016/12/8.
 */
package entities;


public class JNIDemo {

    private static final JNIDemo INSTANCE = new JNIDemo();

    private JNIDemo(){
//        System.loadLibrary("authorityJava");
//        setDatPath("license.dat");
    }

    public native byte[] encode(String jstr);
    public native String decode(byte[] jstr);
    public native void setDatPath(String path);
    public native int calcl(int[] content,int pos);

    public static JNIDemo instance() {
        return INSTANCE;
    }

    /*public static void main(String[] args) {

        byte[] bytes= JNIDemo.instance().encode("aa");
        System.out.println(JNIDemo.instance().decode(bytes));

    }*/


}
